package org.aceor.mddal.gateway.executor;

import com.google.common.base.Objects;
import com.google.common.collect.Maps;
import org.aceor.mddal.common.sqlparser.result.context.MergeContext;
import org.aceor.mddal.gateway.router.RealSqlContext;

import java.util.List;
import java.util.Map;

/**
 * Created by lxue on 16/4/11.
 */
public class ExecuteContext {
    public Map<String/** groupDsKey **/,
            List<RealSqlContext>/** list of sqls to be executed in one group ds**/> sqlMap
            = Maps.newHashMap();

    public MergeContext mergeContext;
    @Override
    public String toString() {
        return Objects.toStringHelper(this)
                .add("sqlMap", sqlMap)
                .add("mergeContext", mergeContext)
                .toString();
    }
}
